//
//  Extansion+UIButton.swift
//  weiBoSwift
//
//  Created by 刘胤辰 on 16/7/20.
//  Copyright © 2016年 it.com. All rights reserved.
//

import UIKit

extension UIButton{
    
    convenience init(title:String,titleColor:UIColor,font:CGFloat?){
        
        self.init()
        
        self.setTitle(title, forState: UIControlState.Normal)
        
        self.setTitleColor(titleColor, forState: UIControlState.Normal)
        
        if let font=font{
            
            self.titleLabel?.font=UIFont.systemFontOfSize(font)
        }
    }
}
